/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.restorator.dao.implement.engin;

import java.sql.ResultSet;
import java.sql.SQLException;
import javax.management.relation.Role;
import org.restorator.dao.jdbc.RowMapper;
import org.restorator.entity.Roles;
import org.restorator.entity.User;

/**
 *
 * @author Administrator
 */
public class RoleRowMapper implements RowMapper<Roles>{

    @Override
    public Roles mapRow(ResultSet rs, int rowCount) throws SQLException {
        Roles role = new Roles();
        role.setRoleId(rs.getInt(1));
        role.setRole(rs.getString(2));
        return role;
    }
    
}
